package com.cn.tianxin.ssserver.constants;

import com.cn.tianxin.ssserver.utils.PropUtil;

import java.io.IOException;

//微信服务号 常量
public class WeixinConstans {

    public static final String token = "tianxin";

    //测试号api
    public static final String testAccountToken = "tianxinTest";

    public static String appid;

    public static String secret;

    public static String authRedirectUrl;

    static {
        try {
            appid = PropUtil.getPropUtilFromMap("weixin.properties").get("appId");
            secret = PropUtil.getPropUtilFromMap("weixin.properties").get("secret");
            authRedirectUrl = PropUtil.getPropUtilFromMap("weixin.properties").get("authRedirectUrl");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static String defaultEncode = "UTF-8";

}
